package main

import "fmt"

func main()  {
	arr1:=[...]int{5,2,6,3,9}
	fmt.Println(arr1)
	num:=len(arr1)
	for i:=0;i<num ;i++  {
		for j:=i+1;j<num;j++{
			if arr1[i]>arr1[j] {
				temp:=arr1[i]
				arr1[i]=arr1[j]
				arr1[j]=temp
			}
		}
	}
	fmt.Println(arr1)
}
